using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AudioManger : MonoBehaviour
{
    public static AudioManger instance;
    private AudioSource player;
    void Start()
    {
        instance = this;
        player = GetComponent<AudioSource>();
    }

    public void Play(string name){
        AudioClip clip = Resources.Load<AudioClip>(name);
        player.PlayOneShot(clip);
    }
}
